package com.yunji.storage.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.yunji.storage.domain.DiscardTicketDO;
import org.apache.ibatis.annotations.Select;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.mapper.xml
 * @Title: DiscardTicketMapper
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-24 11:15:52      V1.0        HuaAo       新建类
 */

public interface DiscardTicketMapper extends MPJBaseMapper<DiscardTicketDO> {

    @Select("<script>UPDATE v3_discard_ticket set audit_status = null WHERE del_flag = 0 AND discard_id = #{discardId}</script>")
    void resetAuditStatus(Long discardId);
}